home *** CD-ROM | disk | FTP | other *** search
/ US Department of Defense…ndamentals 1.0 2004 April / US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso / sco / interface / subtitles.swf / scripts / DefineButton2_13 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2004-03-29  |  1.7 KB  |  65 lines

  1. on(press){
  2.    _parent._parent.gotoAndPlay("up");
  3.    _parent.current_topic_txt = this.description;
  4.    if(_name == "subtitle1")
  5.    {
  6.       if(_level0.current_module == 0)
  7.       {
  8.          getUrl("javascript:goto_sco(1,\'sco002\');", "_self");
  9.       }
  10.       if(_level0.current_module == 1)
  11.       {
  12.          getUrl("javascript:goto_sco(2,\'sco002\');", "_self");
  13.       }
  14.       if(_level0.current_module == 2)
  15.       {
  16.          getUrl("javascript:goto_sco(5,\'sco005\');", "_self");
  17.       }
  18.       if(_level0.current_module == 3)
  19.       {
  20.          getUrl("javascript:goto_sco(9,\'sco009\');", "_self");
  21.       }
  22.    }
  23.    if(_name == "subtitle2")
  24.    {
  25.       if(_level0.current_module == 1)
  26.       {
  27.          getUrl("javascript:goto_sco(3,\'sco003\');", "_self");
  28.       }
  29.       if(_level0.current_module == 2)
  30.       {
  31.          getUrl("javascript:goto_sco(6,\'sco006\');", "_self");
  32.       }
  33.       if(_level0.current_module == 3)
  34.       {
  35.          getUrl("javascript:goto_sco(10,\'sco010\');", "_self");
  36.       }
  37.    }
  38.    if(_name == "subtitle3")
  39.    {
  40.       if(_level0.current_module == 1)
  41.       {
  42.          getUrl("javascript:goto_sco(4,\'sco004\');", "_self");
  43.       }
  44.       if(_level0.current_module == 2)
  45.       {
  46.          getUrl("javascript:goto_sco(7,\'sco007\');", "_self");
  47.       }
  48.       if(_level0.current_module == 3)
  49.       {
  50.          getUrl("javascript:goto_sco(11,\'sco011\');", "_self");
  51.       }
  52.    }
  53.    if(_name == "subtitle4")
  54.    {
  55.       if(_level0.current_module == 2)
  56.       {
  57.          getUrl("javascript:goto_sco(8,\'sco008\');", "_self");
  58.       }
  59.       if(_level0.current_module == 3)
  60.       {
  61.          getUrl("javascript:goto_sco(12,\'sco012\');", "_self");
  62.       }
  63.    }
  64. }
  65.